<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/bower_components/bootstrap/css/bootstrap.css">
    <link href="/static/css/controls.css" rel="stylesheet" type="text/css"/>
    <link href="/bower_components/bootstrap-additions/dist/bootstrap-additions.css" rel="stylesheet" type="text/css"/>
    <link href="/static/css/ruleExpression.css" rel="stylesheet" type="text/css"/>
    <script src="/bower_components/requirejs/require.js" data-main="/static/app.js"
            data-bootstrap-modules="'system/unitcase/expect/UnitCaseExpectModule'"></script>
</head>


<body ng-controller="UnitCaseExpectController" class="container">
<g-data-source url="/grule-manager/unitcases/assets/{{unitCaseId}}" data-source-name="AssetSource" allow-auto-load="true"></g-data-source>


<div class="page-header">
    <h1>
        <i class="md md-camera"></i>
        测试用例管理
    </h1>
    <p class="lead">
    </p>
</div>
<div class="row">
    <div class="col-md-10">
        <button class="btn btn-default" ng-click="actions.showAddAssetView()"><span
                class="glyphicon glyphicon-plus"/>&nbsp;新增断言期望
        </button>
        <button class="btn btn-default" ng-click="actions.showAddResultView()"><span
                class="glyphicon glyphicon-plus"/>&nbsp;新增结果集期望
        </button>
        <button class="btn btn-default" ng-click="actions.removeResult(result)"><span
                class="glyphicon glyphicon-plus"/>&nbsp;删除结果集期望
        </button>
        <button class="btn btn-default" ng-click="actions.showUpdateResultView(result)"><span
                class="glyphicon glyphicon-plus"/>&nbsp;修改结果集期望
        </button>
    </div>
    <div class="col-md-10">
        <br>
    </div>
</div>
<div class="panel panel-default">
    <div class="panel-heading">断言期望</div>
    <div class="panel-body">
        <!--断言期望-->
        <div class="row">
            <div class="col-md-10">
                <g-data-grid data-source-name="AssetSource" g-height="300">
                    <g-column width="450px">
                        操作
                        <g-column-tmpl>

                            <a href="javascript:" ng-click="actions.removeAsset(row)"><span
                                    class="glyphicon glyphicon-remove"
                                    aria-hidden="true"></span>&nbsp;&nbsp;删除</a>
                            <a href="javascript:" ng-click="actions.showUpdateAssetView(row)"><span
                                    class="glyphicon glyphicon-edit" aria-hidden="true"></span>&nbsp;&nbsp;修改</a>
                            <a href="javascript:" ng-click="actions.showAssetDetail(row)">
                                <span class="glyphicon glyphicon-folder-open"
                                      aria-hidden="true"></span>&nbsp;&nbsp;查看</a>
                        </g-column-tmpl>
                    </g-column>
                    <g-column width="300" data="expression">
                        断言表达式
                    </g-column>
                </g-data-grid>
            </div>
        </div>
    </div>
</div>

<div class="panel panel-default">
    <div class="panel-heading">结果集期望</div>
    <div class="panel-body">
        <!--断言期望-->
        <div class="row">
            <div class="col-md-2">
                结果集期望：
            </div>
            <div class="col-md-10">
                {{result.expectResult}}
            </div>
        </div>
    </div>
</div>






</body>
</html>